<?php include_once("header.html")?>

<div id="wrap">  <br />

<?php include_once("home_left.html")?>
<div class="admincontent">
	<div id="tabsD" style="width:100%"> 
	  <ul> 
	    <li <?php if($type=='shoppers') echo 'class="on"';?>><a href="/client.php/home/shoppers" title="<?php echo lang("a_demand");?>"><span><?php echo lang("a_demand");?></span></a></li> 
	    <li <?php if($type=='description') echo 'class="on"';?>><a href="/client.php/home/description" title="<?php echo lang("a_desc");?>"><span><?php echo lang("a_desc");?></span></a></li> 
	    <li <?php if($type=='quiz') echo 'class="on"';?>><a href="/client.php/home/quiz" title="<?php echo lang("a_quiz")?>"><span><?php echo lang("a_quiz")?></span></a></li> 
	    <li <?php if($type=='report') echo 'class="on"';?>><a href="/client.php/home/report" title="<?php echo lang("report")?>"><span><?php echo lang("report")?></span></a></li> 
	  </ul> 
	</div>

<br /><br />
				 <br />
		    <p><?php echo lang("grade_info");?>：</p>
			<table width="100%" border="0" cellpadding="0" cellspacing="1" class="missionReport" class="clear">
	          <tr>
	            <td class="title"><?php echo lang("level_0");?></td>
	            <td class="title"><?php echo lang("level_1");?></td>
	            <td class="title"><?php echo lang("level_2");?></td>
	            <td class="title"><?php echo lang("level_3");?></td>
	            <td class="title"><?php echo lang("level_4");?></td>
	            <td class="title"><?php echo lang("level_5");?></td>
	            <td class="title"><?php echo lang("level_6");?></td>
	            <td class="title"><?php echo lang("level_7");?></td>
	          </tr> 
	          <tr>
	            <td align="center">n/a</td>
	            <td align="center">0</td>
	            <td align="center">1-2</td>
	            <td align="center">3-4</td>
	            <td align="center">5</td>
	            <td align="center">6-7</td>
	            <td align="center">8-9</td>
	            <td align="center">10</td>
	          </tr>
       
          </table>
         
      <?php
		if(isset($report_questions)&& is_array($report_questions)){
			foreach ($report_questions as $k=>$v){?>

		<table width="100%" border="0" cellpadding="0" cellspacing="1" class="missionReport" style="margin-top:10px;">
          <tr>
            <td  colspan="3" class="title"><?php echo lang($k);?></td>
            
          </tr>
          <?php
			foreach ($v as $kk=>$vv){
				if($vv['rq_type']==2 || $vv['rq_type']==4 || $vv['rq_type']==1){
				?>
          <tr>
			 <td width="5%"><?php echo $GLOBALS['gGroupsCap'][$k]. "".($kk+1)?></td>
            <td width="85%"><?php echo splitx($vv['rq_question'])?></td>
            <td  width="10%" align="center"></td>
          </tr>
       		 <?php 
				}else if($vv['rq_type']==3){ 
			?>
			  <?php  
					if($vv['rq_group']==5){
					?>	
			<tr>
			 <td width="5%" valign="top"><?php echo $GLOBALS['gGroupsCap'][$k]. "".($kk+1)?></td>
			  <td width="65%"><?php echo splitx($vv['rq_question'])?></td>
              <td  width="30%" align="center"></td>
          	</tr>
          <? }else{?>
			<tr>
			 <td width="5%" valign="top"><?php echo $GLOBALS['gGroupsCap'][$k]. "".($kk+1)?></td>
             <td width="95%" colspan="2" style="padding:0">
            
		            <table width="100%" border="0" cellpadding="0" cellspacing="0">
			            <tr> 
			            	<td width="50%" style="background-color:#ccc;"> <?php echo splitx($vv['rq_question'])?></td>
			            
			          	</tr>
			           <tr>
				           <td style="height:50px">
													
				           </td>
			            </tr>
		             </table>
            </td>
          </tr>	
	   <?php } 
			
				}
				
			}
			?>
        </table>
 		<?php }
 		}
 		?>

</div>

</div>


<?php include_once("footer.html")?>
